Skip to content

fix(firstrade): repoint account-facts sync to current console host - #547

Merged
Pigbibi merged 2 commits into
mainfrom
fix/console-host-repoint
Nov 21, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
fix/console-host-repoint

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

AI assistance

Muse (Muse Spark), acting as the Quant S2 coordinator's dispatched executor, under the owner's approval of 2026-11-21.

What changed

Repointed every pin of the retired strategy-switch console host
qsl-strategy-switch-console.pigbibi.workers.dev to the live console host
qsl-strategy-switch-console.pigbibi-e06.workers.dev. The change is a pure
host-string substitution: 13 occurrences across 9 files, 13 insertions /
13 deletions, and every changed line is a console URL line. No behaviour,
strategy, risk or publishing logic changed.

Production pins (4 files, 5 occurrences):

  • src/firstrade_platform/application/account_facts_publisher.py —
    _APPROVED_SYNC_URL constant and the parsed.netloc exact-match check.
  • scripts/account_facts_config_sync.py — APPROVED_SYNC_URL.
  • scripts/inspect_account_data_readiness.py — ACCOUNT_FACTS_DESTINATION.
  • .github/workflows/ft-adopt-facts-revision.yml — the inline exact-match
    check on FIRSTRADE_ACCOUNT_FACTS_SYNC_URL.

Test fixtures (5 files, 8 occurrences) updated to the same host so the
exact-match approvals keep exercising the positive path, and the negative
cases (http scheme, query string) remain negative:

  • tests/test_account_facts_config_sync.py (1)
  • tests/test_account_facts_endpoint.py (1)
  • tests/test_account_facts_publisher.py (3)
  • tests/test_build_cloud_run_env_sync_plan.py (2)
  • tests/test_publish_archived_account_history.py (1)

Whole-repo accounting: git grep for the old host over all tracked files
returned exactly the 13 occurrences above before the change and zero after
it. No other file (docs, README, other workflows) contains the old host;
the READMEs reference the variable name only.

Repository variables: FIRSTRADE_ACCOUNT_FACTS_SYNC_URL and
EXECUTION_EVIDENCE_SYNC_URL currently pin the old host. Because the pins
are exact-match by design, the variables will be repointed to the -e06
host immediately after this PR merges, before the next scheduled run, so
code and variables move together.

How verified

  • Baseline on main (9d90f23): uv run --no-sync python -m pytest -q —
    1038 passed, 3 skipped.
  • On this branch (e60c2b1): same command — 1038 passed, 3 skipped
    (identical counts); ruff check src scripts tests — all checks passed.
  • git diff purity check: zero changed lines that are not console URL
    lines.
  • Live probe (read-only GET): old host root returns 404; the -e06 host
    root returns 200.

Why

The console moved Cloudflare accounts on 2026-11-18 and now lives only on
the -e06 host; the old subdomain serves nothing. Firstrade's
account-facts publisher hard-pins the old host, so every publish fails
(HTTP 502 from /account-facts-sync), which is the leading hypothesis for
the Runtime Guard's intermittent failure detections since 2026-11-19
(diagnosis: executor-platform diagnosis report, Scope 1 H1). Facts still
archive to GCS before publishing, so no data was lost; only the console
sync is failing.

Risk

Risk tier: low, bounded config correction. Affected paths: the
account-facts publish destination and its exact-match guards in code, one
workflow check, and test fixtures. Compatibility impact: the publisher
continues to fail closed (destination_not_approved) on any destination
other than the single approved URL; only the approved value changes.
Operational impact: after the matching repository variables are repointed
post-merge, the next scheduled /account-facts-sync should publish to the
live console again; the first scheduled runs after the change are the
observation point. No strategy, risk-gate, order or session logic is
touched.

@Pigbibi

Pigbibi commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T03:39:52.989479Z e60c2b1 Manual request
🔒 Security Review ✅ Completed 2026-11-21T03:41:56.629735Z e60c2b1 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e60c2b1b76

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 21, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: e60c2b1b76

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi

Pigbibi commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: e60c2b1b76

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: e60c2b1b76

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi
Pigbibi merged commit fbb431f into main Nov 21, 2026
15 of 17 checks passed
@Pigbibi
Pigbibi deleted the fix/console-host-repoint branch November 21, 2026 03:45
@Pigbibi

Pigbibi commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Post-merge correction to the verification record: the 1038 passed / 3 skipped figures quoted in the PR body came from local runs made while the test environment was still syncing (reduced collection). The complete-environment runs are: baseline on main — 1856 passed, 1 skipped, 118 subtests passed; this branch — 1856 passed, 1 skipped, 118 subtests passed (identical), with ruff clean. The hosted CI test job on the merged head was green. No conclusion changes: counts match baseline exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant